<%@ page language="java" import="java.util.*,com.common.config.WebConfiguration"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String webResource = WebConfiguration.webResource;
    String actionUrl=Boolean.parseBoolean(request.getAttribute("isEdit").toString())?"/admin/schools/update":"/admin/schools/save";
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
<link href="<%=webResource%>/assets/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="<%=webResource%>/assets/css/font-awesome.css?v=4.4.0" rel="stylesheet">
<link href="<%=webResource%>/assets/css/animate.css" rel="stylesheet">
<link href="<%=webResource%>/assets/css/style.css?v=4.1.0" rel="stylesheet">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <form action="<%=actionUrl %>" class="form-horizontal m-t" method="post"  id="fmForm">
                      <input type="hidden" name="isEdit"  value="${isEdit}">
                       <input type="hidden" name="school.id" value="${school.id}">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">学校名：</label>
                                <div class="col-sm-8">
                                    <input id="title" name="school.name" value="${school.name }"  type="text" class="form-control" required aria-required="true">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">标签：</label>
                                <div class="col-sm-8">
                                    <input id="label" type="text" value="${school.label}" class="form-control" name="school.label" required aria-required="true">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-3">
                                    <button class="btn btn-primary" type="button" id="btn_save"><i class="glyphicon glyphicon-ok"></i>&nbsp;提交</button>                               
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
               
            </div>
          
                </div>
            </div>
     


   <!-- 全局js -->
	<script src="<%=webResource%>/assets/js/jquery.min.js?v=2.1.4"></script>
	<script src="<%=webResource%>/assets/js/bootstrap.min.js?v=3.3.6"></script>
<link href="<%=webResource%>/assets/js/plugins/layer/skin/default/layer.css" rel="stylesheet">
 <script src="<%=webResource%>/assets/js/plugins/layer/layer.js"></script>
	<script src="<%=webResource%>/assets/js/common.js"></script>
	<!-- 自定义js -->
	    <!-- jQuery Validation plugin javascript-->
    <script src="<%=webResource%>/assets/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="<%=webResource%>/assets/js/plugins/validate/messages_zh.min.js"></script>
   <script type="text/javascript">
   
     $(function(){
         $(ajaxSubmitFormHandle('#btn_save', '#fmForm', '登录失败，请联系管理员',false));
        
     });
     
     </script>
</body>
</html>
